package com.hzdl.hotel.service.impl;

import com.hzdl.hotel.bean.Advice;
import com.hzdl.hotel.mapper.AdviceMapper;
import com.hzdl.hotel.service.AdviceService;
import com.hzdl.hotel.vo.AdviceVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdviceServiceImpl implements AdviceService {

    @Autowired
    private AdviceMapper adviceMapper;

    @Override
    public int addAdvice(Advice advice) {
        return adviceMapper.addAdvice(advice);
    }

    @Override
    public List<Advice> findAll(AdviceVo adviceVo) {
        return adviceMapper.findAll(adviceVo);
    }
}
